﻿Ext.extend(NExt.form.TriggerField, Ext.form.TriggerField, {
    onTriggerClick: function(event) {
        this.fireEvent('onTriggerFired', event);
    },

    getModel: function() {
        return this.model;
    },

    setModel: function(model) {
        this.model = model;
        var displayValue = this.model[this.displayField];
        this.setValue(displayValue);
    }
});